package main

import (
	"github.com/gin-gonic/gin"
	"myschools.me/websocket-demo/ws"
)

func main() {
	go ws.Manager.Start()

	r := gin.Default()
	r.GET("/", ws.Page)
	r.GET("/ws", ws.WsPage)

	r.Run("localhost:8080")
}
